package com.collapse.union.gitee.auto.flow.demo.config;

import cc.autoapi.pucong.auto.flow.core.flow.execNode.ai.send.AbstractAiSendSendTool;
import cc.autoapi.pucong.auto.flow.core.flow.execNode.ai.send.handler.Kimi32kAiHandlerSend;
import cc.autoapi.pucong.auto.flow.core.flow.execNode.ai.send.handler.TransAiHandlerSend;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@Slf4j
public class AiToolsInitializer {

    @Value("${system.kimiKey}")
    private String kimiKey;

    @Value("${system.tranId}")
    private String tranAppid;

    @Value("${system.tranKey}")
    private String tranAppkey;

    @Bean
    public AbstractAiSendSendTool startDbInitializer() {
//        return new Kimi32kAiHandlerSend(kimiKey);
        return new TransAiHandlerSend(tranAppid, tranAppkey);
    }

}
